.upload-bar {
  @itemWidth: 100px;
  @itemHeight: 120px;

  display: flex;
  flex-direction: row;

  .upload-btn {
    width: @itemWidth;
    height: @itemHeight;
    position: relative;
    flex: none;
    input {
      opacity: 0;
      position: absolute;
      left: 0;
      top: 0;
      right: 0;
      bottom: 0;
    }
    button {
      width: 100%;
      height: 100%;
    }
  }

  .save-btn {
    width: @itemWidth;
    height: @itemHeight;
    flex: none;
    button {
      width: 100%;
      height: 100%;
    }
  }

  .img-list {
    flex: 1;
    display: flex;
    flex-direction: row;
    gap: 8px;
    height: @itemHeight;
    overflow-x: auto;
    padding: 0 8px;

    .img-item {
      height: 100%;
      width: @itemWidth;
      border-radius: 2px;
      overflow: hidden;
      flex: none;
      position: relative;
      border: 1px solid transparent;
      box-sizing: border-box;
      cursor: pointer;

      &.active {
        border-color: #09c;
      }

      .status {
        display: flex;
        justify-content: center;
        align-items: center;
        background-color: #f5f3f3;
        height: 100%;

        &.color-gary {
          color: #888;
        }

        &.color-red {
          color: red;
        }
      }

      .img-item-img {
        position: relative;
        width: 100%;
        height: 100%;

        img {
          position: absolute;
          width: 100%;
          height: 100%;
          left: 0;
          top: 0;
          object-fit: cover;
        }

        .img-item-name {
          box-sizing: border-box;
          position: absolute;
          bottom: 0;
          padding: 8px;
          background-color: rgba(0, 0, 0, 0.45);
          color: #fff;
          text-align: center;
          width: 100%;
          z-index: 2;
        }
      }
    }
    .img-item-del {
      position: absolute;
      z-index: 2;
      right: 8px;
      top: 8px;
      color: red;
    }
  }
}
